<template>
    <div class="recommend">
        <div class="left-title">
            {{ list.texttitle }}
        </div>
        <div class="right-img">
            <img :src="list.textimage" alt="">
        </div>
        <div class="bottom-text">
            <van-tag type="primary" size="medium" color="#fff7e5" text-color="#ffad05">{{ list.texttype }}</van-tag>
            <span style="margin-left: 0.2rem;">{{ list.textcount }}收听</span>
        </div>
    </div>

</template>

<script setup lang="ts">

defineProps(['list'])
</script>

<style scoped>
/* 整体页面布局样式 */
body {
    font-family: Arial, sans - serif;
    margin: 0;
    padding: 0;
}
.recommend {
  width: 100%;
  height: 3rem;
  border-bottom: 1px solid #f4f5f6;
  /* background: green; */
  padding: 0.5rem 0 0.5rem 0.15rem;
}
.left-title{
    float: left;
    width: 54%;
    height: 1.6rem;
    font-size: 0.3rem;
    /* background: green; */
    margin-left: 0.15rem;
}
.right-img{
    float: right;
    width: 40%;
    height: 2rem;
    margin-right: 0.2rem;
    /* background: red; */
    img{
        width: 100%;
        height: 100%;
    }
}
.bottom-text{
    float: left;
    width: 54%;
    /* background: blue; */
    margin-left: 0.15rem;
    span{
        font-size: 0.25rem;
        color: #999999;
        
    }
}
</style>